import matplotlib.pyplot as plt


def show_picture(picture, name, cmap=None):
    """
    显示图像
    :param picture: 输入的图像数据
    :param name: 显示的图像标题
    :param cmap:
    :return:
    """
    plt.imshow(X=picture, cmap=cmap)
    # 不显示坐标轴
    plt.axis('off')
    plt.title(name)
    plt.show()
